package ClassDay2;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TheMain {
   public static void main(String[] args)
   {
       ApplicationContext ctx=new ClassPathXmlApplicationContext("BeanConfig2.xml");
       smallclass sc1=(smallclass) ctx.getBean("smallclasse");
       sc1.save();
   }
}
